package com.ewancle.model;

import java.time.LocalDateTime;

/**
 * 乱序方案：
 * 1 sql 随机排序：SELECT * FROM your_table ORDER BY RANDOM() LIMIT 1;
 * 2 前端sk进来标识，内存加载； 进行id随机分页。每点击一页记录页数和id列表，存redis。sk离线，清空该redis的相关数据
 */
public class QuestionStem {

    private Long id;

    /**
     * 题目类型
     */
    private Integer type;

    /**
     * 题目的数据id，用来爬虫使用
     */
    private Long dataId;

    private String content; // 题目问题内容 1: 普通单选 2:共用题干 3:共用选项 4:普通多选题

    private Long partId; // 爬虫数据的Subject的partId

    private Long subjectId; // 科目id

    private LocalDateTime created_at; // 创建时间

    private LocalDateTime updated_at; // 更新时间

    private String answer; // 答案

    private Integer status; // 状态

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getPartId() {
        return partId;
    }

    public void setPartId(Long partId) {
        this.partId = partId;
    }

    public Long getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Long subjectId) {
        this.subjectId = subjectId;
    }

    public LocalDateTime getCreated_at() {
        return created_at;
    }

    public void setCreated_at(LocalDateTime created_at) {
        this.created_at = created_at;
    }

    public LocalDateTime getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(LocalDateTime updated_at) {
        this.updated_at = updated_at;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
